package com.example.news.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * &#064;TableName  comment
 */
@TableName(value ="comment")
@Data
public class Comment implements Serializable {
    @TableId
    private Integer id;

    private String content;

    private Integer articleId;

    private Integer userId;
    @TableField(fill = FieldFill.INSERT) //创建时自动填充
    private Date createTime;

    private Integer status;

    private Integer parentId;

    private Integer firstCommentId;

    @Serial
    private static final long serialVersionUID = 1L;
}